package cn.iocoder.yudao.module.trade.api.brokerage;

import cn.iocoder.yudao.module.trade.api.brokerage.dto.BrokerageRecordCreateReqDTO;
import cn.iocoder.yudao.module.trade.service.brokerage.BrokerageRecordService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

@Service
@Validated
public class BrokerageRecordApiImpl implements BrokerageRecordApi {

    @Resource
    private BrokerageRecordService brokerageRecordService;

    @Override
    public void addRewardBrokerage(BrokerageRecordCreateReqDTO reqDTO) {
        brokerageRecordService.addRewardBrokerage(reqDTO);
    }

    @Override
    public void calculateClerkBrokerage(Long clerkId) {
        brokerageRecordService.calculateClerkBrokerageByClerkId(clerkId);
    }
}
